/**
 * 
 */
package vn.edu.fpt.xml.hrm.controller.auth;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import vn.edu.fpt.xml.hrm.controller.AbstractController;

/**
 * Run when user click logout button
 * @author Yoshimi
 *
 */
public class LogoutController extends AbstractController {

	/* (non-Javadoc)
	 * @see vn.edu.fpt.xml.hrm.controller.AbstractController#execute()
	 */
	@Override
	protected String execute() {
		HttpServletRequest request = this.getRequest();
                HttpSession session = request.getSession();
                session.removeAttribute("USER");
                session.removeAttribute("EMPLOYEEID");
                session.removeAttribute("ROLE");
		return "jsp/log01010.jsp";
	}

}
